﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Tradex.ComponentModel;

namespace Tradex.Connectivity {
    
    /// <summary>
    /// A ConnectionKey uniquely identifies a connection to an external system.
    /// </summary>
    [Serializable()]
    public sealed class ConnectionKey : EntityKey {

        /// <summary>
        /// Public constructor taking all arguments.
        /// </summary>
        /// <param name="value"></param>
        public ConnectionKey(string value) {
            Connection = value;
        }

        /// <summary>
        /// Gets the connection code.
        /// </summary>
        public string Connection { get; private set; }

        /// <inheritdoc />
        public override string ToString() {
            return Connection;
        }

    }

}
